package com.bjpowernode;

import com.bjpowernode.service.BuyGoodsService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MyTest02 {

    @Test
    public void test01(){
        String configure="applicationContext.xml";
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext(configure);


        BuyGoodsService service=(BuyGoodsService) applicationContext.getBean("BuyService");
        service.buy(1002,15);

    }
}
